# 代码所有：cxw
# 开发时间：2021/11/7 15:19

#导入模块中的一个类
#导入文件名为car.py中包含的Car类
'''from car import Car
my_newcar=Car("audi","a4",2016)
my_newcar.get_descriptive_name()
my_newcar.read_carlength()
my_newcar.update_long(50)
my_newcar.read_carlength()
my_newcar.increment_odment(20)
my_newcar.read_carlength()'''

#导入整个模块
'''import car
my_car=car.Car("audi","a4",2016)
my_car.get_descriptive_name()
my_car.read_carlength()
my_car.update_long(50)
my_car.read_carlength()
my_car.increment_odment(20)
my_car.read_carlength()'''

#导入模块中的所有类
#from car import *

from car import Car  #从car.py中导入了Car类，并从my_electric.py中导入了Elec类
from my_electric_car import Elec
my_beetee=Car("volock","bettee",2016)
my_beetee.get_descriptive_name()
mytes=Elec("tes","roader",2017)
mytes.get_descriptive_name()

